<?php
namespace app\api\controller\wdsxh;
use app\admin\model\wdsxh\Introduce as Model;
/**
 * 商会接口
 */
class Coceral extends Base
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    public function info(){
        $data=Model::where('id',1)->find();
        if($data){
            $data->hidden(['id']);
            $data['offiaccount']=wdsxh_full_url($data['offiaccount']);
            $data['images']=wdsxh_full_url($data['images'],1);
            $data['pc_images']=wdsxh_full_url($data['pc_images'],1);
            $data['logo']=wdsxh_full_url($data['logo']);
            $data['thumbnail']=wdsxh_full_url($data['thumbnail']);
        }
        $this->success($data);
    }
}